package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.swing.*;
import java.io.IOException;

@Controller
@RequestMapping("/user")
public class usercontroller {
    @RequestMapping("/testinterceptor")
    public String testinterceptor(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("controller中启动拦截器。。。");
        return "success";
    }
}
